<template>
  <div>系统</div>
  <el-button type="danger" @click="openModal">打开弹窗</el-button>
  <el-button type="danger" @click="openconfirm">打开confirm</el-button>
  <Modal v-model:visible="modalFlag" :title="title" @modal-submit="submit"> qqqq</Modal>
</template>

<script setup lang="ts">
import Modal from '@/components/Modal/index.vue';
import { confirmModel } from '@/composables/modalConfirm';
import { ref } from 'vue';
const modalFlag = ref<boolean>(false);
const title = ref<string>('test弹窗');
const openModal = () => {
  modalFlag.value = true;
};
const submit = (n) => {
  console.log('submit', n);
};
const openconfirm = () => {
  confirmModel('确定删除吗', () => {
    console.log(11);
  });
};
</script>

<style scoped lang="scss"></style>
